<template>
  <div>
    <el-row>
      <el-col :span="12">
        <div class="left">
          <div class="shang">
            <div class="zuo">
              <i></i>
              <p>财务数据</p>
            </div>
            <div class="you">
              <span>本月订单数量: 320</span>
              <span>本月订单总额: ￥630000</span>
              <p>本周</p>
              <p>本月</p>
            </div>
          </div>
          <img :src="Tu" alt="" />
        </div>
      </el-col>
      <el-col :span="12">
        <div class="right">
          <div class="xia" style="margin-left: 16px; padding-top: 16px;">
            <i class="shu"></i>
            <p>学员信息</p>
          </div>
          <table border="1" cellspacing="0">
            <thead>
              <tr>
                <th>顺序</th>
                <th>姓名</th>
                <th>手机</th>
                <th>消费金额</th>
                <th>会员等级</th>
              </tr>
            </thead>
            <tbody>
              <tr v-for="item in user" :key="item.id">
                <td>{{ item.id }}</td>
                <td>{{ item.name }}</td>
                <td>{{ item.mob }}</td>
                <td>{{ item.mon }}</td>
                <td>{{ item.mem }}</td>
              </tr>
            </tbody>
          </table>
        </div>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import Tu from "./main/main-biaoge.png";
const arr = [
  { id: 1, name: "菲菲", mob: "18854138769", mon: "2366.00", mem: "3" },
  { id: 2, name: "菲菲", mob: "18854138769", mon: "2366.00", mem: "3" },
  { id: 3, name: "菲菲", mob: "18854138769", mon: "2366.00", mem: "3" },
  { id: 4, name: "菲菲", mob: "18854138769", mon: "2366.00", mem: "3" },
  { id: 5, name: "菲菲", mob: "18854138769", mon: "2366.00", mem: "3" },
  { id: 6, name: "菲菲", mob: "18854138769", mon: "2366.00", mem: "3" },
];
export default {
  data() {
    return {
      Tu: Tu,
      user: arr,
    };
  },
};
</script>

<style lang='less' scoped>
.el-row {
  margin-bottom: 20px;
  &:last-child {
    margin-bottom: 0;
    .left {
      background-color: #fff;
      margin-right: 20px;
      .shang {
        display: flex;
        justify-content: space-between;
        align-items: center;
        .zuo {
          display: flex;
          margin-left: 16px;
          margin-top: 16px;
          i {
            width: 6px;
            height: 10px;
            background-color: blue;
            margin-right: 10px;
          }
          p {
            font-size: 10px;
          }
        }
        .you {
          display: flex;
          margin-right: 16px;
          margin-top: 16px;
          span {
            font-size: 10px;
            margin: 0 6px;
          }
          p {
            font-size: 10px;
            margin: 0 6px;
          }
        }
      }
      img {
        height: 360px;
      }
    }
  }
  .right{
    background-color: #fff;
    margin-left: 10px;
    .xia {
    display: flex;
    i {
      width: 6px;
      height: 10px;
      background-color: blue;
    }
    p {
      font-size: 10px;
      margin-left: 6px;
    }
  }
  table {
    width: 700px;
    margin: 30px auto;
    text-align: center;
    td {
      padding: 18px;
      border-bottom: 1px solid #ccc;
    }
  }
  }
}
</style>